<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    body,p,h1,h2,h3,h4,h5,h6,dl,dd{
      margin: 0;
      font-size: 12px; /* 中文字体大小的最小值 */
      /* font-family: xx; 也可以设置字体 */
    }
    ol,ul {
      list-style: none; /* 去除列表样式 */
      padding: 0;
      margin: 0;
    }

    a {
      color: #464646;
      text-decoration: none;
    }

    a:hover {
      color: #f60;
      text-decoration: underline;
    }
    .red-nav{
      height: 38px;
      background-color: #d80000;
      width: 100%;
    }
    .red-nav ul{
      display: flex;
      width: 1200px;
      margin: 0 auto;
    }
    .red-nav li{
      flex: 0 0 auto;
      line-height: 38px;
      font-size: 16px;
      padding: 0 24px;
      font-weight: bold;
    }
    .red-nav li a{
      color: white;
    }

    .red-nav li:hover{
      background-color: #c90000;
    }
    .red-nav li:nth-child(1)
    {
      padding-right: 100px;
      padding-left: 20px;
      background-color: #c90000;
    }
  </style>
</head>
<body>
<div class="red-nav">
  <ul>
    <li><a href="#">全部图书分类</a></li>
    <li><a href="#">首页</a></li>
    <li><a href="#">特卖</a></li>
    <li><a href="#">入驻商家</a></li>
    <li><a href="#">文具</a></li>
    <li><a href="#">考试</a></li>
    <li><a href="#">电子书</a></li>
  </ul>
</div>
</body>
</html>
